package com.wondream.myframework.heima_concurrent;

/**
 * 第二种创建线程的方法-实现Runnable接口
 */
public class _002_Thread_Implements_Runnable {
    public static void main(String[] args) {
        Runnable var1 = new Runnable() {
            @Override
            public void run() {
                System.out.println("第二种创建线程的方法-实现Runnable接口");
            }
        };
        Thread var2 = new Thread(var1, "thread1");
        var2.start();
    }
}
